import { reactive, readonly, watchEffect } from 'vue';

const original = reactive({ count: 0 });
const copy = readonly(original);

watchEffect(() => {
    console.log('copy.count', copy.count);
});

original.count++;

setTimeout(() => {
    copy.count++;
}, 1000);
